package fr.xebia;

import org.apache.wicket.Request;
import org.apache.wicket.protocol.http.WebSession;

import fr.xebia.beans.Panier;

public class XkeWebSession extends WebSession {

	private static final long serialVersionUID = 1L;

	public XkeWebSession(Request request) {
		super(request);
	}

	public void addPanier(Panier panier) {
		setAttribute("panier", panier);
	}

	public Panier getPanier() {
		Panier panier = (Panier) getAttribute("panier");
		return panier;
	}

}
